package com.similarworld.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ItemComment lar icin Rate entity
 * 
 * @author erdal.bitik
 * */

@Entity
@Table(name="ITEM_COMMENT_RATES")
public class ItemCommentRate extends AbstractModel {

	private static final long serialVersionUID = 1L;
	
	@ManyToOne
	@JoinColumn(name = "COMMENT_ID")
	private ItemComment comment;
	
	private Integer rate;

	public Integer getRate() {
		return rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}

	public ItemComment getComment() {
		return comment;
	}

	public void setComment(ItemComment comment) {
		this.comment = comment;
	}
	
}
